package com.tiancheng.trade.settlement.mapper.settlement;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tiancheng.trade.settlement.exception.BusinessException;
import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.vo.settlement.api.GetBillDetailVO;
import com.tiancheng.trade.settlement.vo.settlement.api.SettlementBillDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SettlementBillDetailMapper extends TYBaseMapper<SettlementBillDetailVO> {

    /**
     * 清分汇总明细信息
     *
     * @param detailVO
     * @return
     */
    IPage<SettlementBillDetailVO> querySummaryView(Page<?> page, @Param("vo") GetBillDetailVO detailVO) throws BusinessException;

    /**
     * 清分汇总明细信息
     *
     * @param detailVO
     * @return
     */
    IPage<SettlementBillDetailVO> queryPlatSummaryView(Page<?> page, @Param("vo") GetBillDetailVO detailVO) throws BusinessException;

    /**
     * 清分汇总明细信息导出
     *
     * @param detailVO
     * @return
     */
    List<SettlementBillDetailVO> querySummaryView(@Param("vo") GetBillDetailVO detailVO) throws BusinessException;

}
